package com.eliaukjq.xunlianying;

/**
 * @Author : 佩萁
 * Description :
 * @Create : 2024/7/10 - 16:41
 */
public class BlankFinal {
    final int i1 = 1;//在定义时赋值
    final int i2;

    public BlankFinal() {
        i2 = 1;//在构造器赋值
    }

    public BlankFinal(int x) {
        this.i2 = x;
    }

    public static void main(String[] args) {
        BlankFinal blankFinal = new BlankFinal();
        System.out.println(blankFinal.i2);
    }
}
